<<<<<<< HEAD
<?php
include_once dirname(__FILE__).'/../includes/res.php';
include_once dirname(__FILE__).'/../includes/admin_header.php';
require_once dirname(__FILE__).'/../service/UserService.php';

$userService = new UserService();
$users = $userService->getAllUsers();
?>
<div class="container">
    <form class="well form-search">
        <input type="text" name="email" value="" class="input-middle" placeholder="邮箱">
        <input type="text" name="display_name" value="" class="input-middle" placeholder="昵称">
        <button type="submit" class="btn">Search</button>
    </form>
    
    <table id="widgets_table" class="table table-striped table-bordered table-condensed" style="width:100%">
        <thead>
            <tr>
                <th>邮箱</th>
                <th>昵称</th>
                <th>注册时间</th>
                <th>操作</th>
            </tr>
        </thead>
        <tbody>
        <?php 
        foreach ($users as $user) {
            echo '<tr>';
            echo '<td>'.$user['email'].'</td>';
            echo '<td>'.$user['display_name'].'</td>';
            echo '<td>'.$user['created_time'].'</td>';
            echo '<td></td>';
            echo '</tr>';
        }
        ?>
        </tbody>
    </table>
=======
<?php
include_once dirname(__FILE__).'/../includes/res.php';
include_once dirname(__FILE__).'/../includes/admin_header.php';
require_once dirname(__FILE__).'/../service/UserService.php';

$userService = new UserService();
$users = $userService->getAllUsers();
?>
<div class="container">
    <form class="well form-search">
        <input type="text" name="email" value="" class="input-middle" placeholder="邮箱">
        <input type="text" name="display_name" value="" class="input-middle" placeholder="昵称">
        <button type="submit" class="btn">Search</button>
    </form>
    
    <table id="widgets_table" class="table table-striped table-bordered table-condensed" style="width:100%">
        <thead>
            <tr>
                <th>邮箱</th>
                <th>昵称</th>
                <th>注册时间</th>
                <th>操作</th>
            </tr>
        </thead>
        <tbody>
        <?php 
        foreach ($users as $user) {
            echo '<tr>';
            echo '<td>'.$user['email'].'</td>';
            echo '<td>'.$user['display_name'].'</td>';
            echo '<td>'.$user['created_time'].'</td>';
            echo '<td></td>';
            echo '</tr>';
        }
        ?>
        </tbody>
    </table>
>>>>>>> 20d6c557d209a3f376420616f57b4bd953611975
</div>